<h1>Listing admins</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Email</th>
    <th>Username</th>
    <th>Password</th>
  </tr>

<% @admins.each do |admin| %>
  <tr>
    <td><%=h admin.name %></td>
    <td><%=h admin.email %></td>
    <td><%=h admin.username %></td>
    <td><%=h admin.password %></td>
    <td><%= link_to 'Show', admin %></td>
    <td><%= link_to 'Edit', edit_admin_path(admin) %></td>
    <td><%= link_to 'Destroy', admin, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New admin', new_admin_path %>